package com.ceair.flight.refund.location.model;

import java.io.Serializable;
import java.math.BigDecimal;

public class SegrpuDO extends BaseDO implements Serializable { // 退票改期规则

    /**
     *
     */
    private static final long serialVersionUID = 8759795394163659488L;
    /**
     * 退改签规则id *
     */
    private Long rpuId;
    /**
     * 退票金额 *
     */
    private BigDecimal refundedAm;
    /**
     * 退票规则（定额/百分比） *
     */
    private Integer refundedAmPerFg;
    /**
     * 可否退票 *
     */
    private boolean refundedFg;
    /**
     * 改期金额 *
     */
    private BigDecimal rescherualedAm;
    /**
     * 改期规则（定额/百分比） *
     */
    private Integer reschedualedAmPerFg;
    /**
     * 可否改期 *
     */
    private boolean reschedualedFg;
    /**
     * 签转金额 *
     */
    private BigDecimal changeAirLineAm;
    /**
     * 签转规则（定额/百分比） *
     */
    private Integer changeAirLineAmPerFg;
    /**
     * 可否签转 *
     */
    private boolean changeAirLineFg;
    /**
     * 最大时间 *
     */
    private Integer maxTime;
    /**
     * 最大时间单位 *
     */
    private String maxTimeUnit;
    /**
     * 最小时间 *
     */
    private Integer minTime;
    /**
     * 最小时间单位 *
     */
    private String minTimeUnit;
    /**
     * 航前航后标记（0 航前 1 航后） *
     */
    private Integer timeFlag;
    /**
     * 最大时间0不包含1包含 *
     */
    private Integer maxTimeFlag;
    /**
     * 最小时间0不包含1包含 *
     */
    private Integer minTimeFlag;
    /**
     * 航段id *
     */
    private Long segmentId;

    public Long getRpuId() {
        return rpuId;
    }

    public void setRpuId(Long rpuId) {
        this.rpuId = rpuId;
    }

    public BigDecimal getRefundedAm() {
        return refundedAm;
    }

    public void setRefundedAm(BigDecimal refundedAm) {
        this.refundedAm = refundedAm;
    }

    public Integer getRefundedAmPerFg() {
        return refundedAmPerFg;
    }

    public void setRefundedAmPerFg(Integer refundedAmPerFg) {
        this.refundedAmPerFg = refundedAmPerFg;
    }

    public boolean getRefundedFg() {
        return refundedFg;
    }

    public void setRefundedFg(boolean refundedFg) {
        this.refundedFg = refundedFg;
    }

    public BigDecimal getRescherualedAm() {
        return rescherualedAm;
    }

    public void setRescherualedAm(BigDecimal rescherualedAm) {
        this.rescherualedAm = rescherualedAm;
    }

    public Integer getReschedualedAmPerFg() {
        return reschedualedAmPerFg;
    }

    public void setReschedualedAmPerFg(Integer reschedualedAmPerFg) {
        this.reschedualedAmPerFg = reschedualedAmPerFg;
    }

    public boolean getReschedualedFg() {
        return reschedualedFg;
    }

    public void setReschedualedFg(boolean reschedualedFg) {
        this.reschedualedFg = reschedualedFg;
    }

    public BigDecimal getChangeAirLineAm() {
        return changeAirLineAm;
    }

    public void setChangeAirLineAm(BigDecimal changeAirLineAm) {
        this.changeAirLineAm = changeAirLineAm;
    }

    public Integer getChangeAirLineAmPerFg() {
        return changeAirLineAmPerFg;
    }

    public void setChangeAirLineAmPerFg(Integer changeAirLineAmPerFg) {
        this.changeAirLineAmPerFg = changeAirLineAmPerFg;
    }

    public boolean getChangeAirLineFg() {
        return changeAirLineFg;
    }

    public void setChangeAirLineFg(boolean changeAirLineFg) {
        this.changeAirLineFg = changeAirLineFg;
    }

    public Integer getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(Integer maxTime) {
        this.maxTime = maxTime;
    }

    public String getMaxTimeUnit() {
        return maxTimeUnit;
    }

    public void setMaxTimeUnit(String maxTimeUnit) {
        this.maxTimeUnit = maxTimeUnit;
    }

    public Integer getMinTime() {
        return minTime;
    }

    public void setMinTime(Integer minTime) {
        this.minTime = minTime;
    }

    public String getMinTimeUnit() {
        return minTimeUnit;
    }

    public void setMinTimeUnit(String minTimeUnit) {
        this.minTimeUnit = minTimeUnit;
    }

    public Integer getTimeFlag() {
        return timeFlag;
    }

    public void setTimeFlag(Integer timeFlag) {
        this.timeFlag = timeFlag;
    }

    public Integer getMaxTimeFlag() {
        return maxTimeFlag;
    }

    public void setMaxTimeFlag(Integer maxTimeFlag) {
        this.maxTimeFlag = maxTimeFlag;
    }

    public Integer getMinTimeFlag() {
        return minTimeFlag;
    }

    public void setMinTimeFlag(Integer minTimeFlag) {
        this.minTimeFlag = minTimeFlag;
    }

    public Long getSegmentId() {
        return segmentId;
    }

    public void setSegmentId(Long segmentId) {
        this.segmentId = segmentId;
    }

    @Override
    public String toString() {
        return "SegrpuDO [rpuId=" + rpuId + ", refundedAm=" + refundedAm
                + ", refundedAmPerFg=" + refundedAmPerFg + ", refundedFg="
                + refundedFg + ", rescherualedAm=" + rescherualedAm
                + ", reschedualedAmPerFg=" + reschedualedAmPerFg
                + ", reschedualedFg=" + reschedualedFg + ", changeAirLineAm="
                + changeAirLineAm + ", changeAirLineAmPerFg="
                + changeAirLineAmPerFg + ", changeAirLineFg=" + changeAirLineFg
                + ", maxTime=" + maxTime + ", maxTimeUnit=" + maxTimeUnit
                + ", minTime=" + minTime + ", minTimeUnit=" + minTimeUnit
                + ", timeFlag=" + timeFlag + ", maxTimeFlag=" + maxTimeFlag
                + ", minTimeFlag=" + minTimeFlag + ", segmentId=" + segmentId
                + ", getRpuId()=" + getRpuId() + ", getRefundedAm()="
                + getRefundedAm() + ", getRefundedAmPerFg()="
                + getRefundedAmPerFg() + ", getRefundedFg()=" + getRefundedFg()
                + ", getRescherualedAm()=" + getRescherualedAm()
                + ", getReschedualedAmPerFg()=" + getReschedualedAmPerFg()
                + ", getReschedualedFg()=" + getReschedualedFg()
                + ", getChangeAirLineAm()=" + getChangeAirLineAm()
                + ", getChangeAirLineAmPerFg()=" + getChangeAirLineAmPerFg()
                + ", getChangeAirLineFg()=" + getChangeAirLineFg()
                + ", getMaxTime()=" + getMaxTime() + ", getMaxTimeUnit()="
                + getMaxTimeUnit() + ", getMinTime()=" + getMinTime()
                + ", getMinTimeUnit()=" + getMinTimeUnit() + ", getTimeFlag()="
                + getTimeFlag() + ", getMaxTimeFlag()=" + getMaxTimeFlag()
                + ", getMinTimeFlag()=" + getMinTimeFlag()
                + ", getSegmentId()=" + getSegmentId() + ", getClass()="
                + getClass() + ", hashCode()=" + hashCode() + ", toString()="
                + super.toString() + "]";
    }

    public String asSimpleRefundRule() {
        return "SegrpuDO{" + "rpuId=" + rpuId + ", refundedAm=" + refundedAm + ", refundedAmPerFg=" + refundedAmPerFg + ", refundedFg=" + refundedFg + ", maxTime=" + maxTime + ", maxTimeUnit=" + maxTimeUnit + ", minTime=" + minTime + ", minTimeUnit=" + minTimeUnit + ", timeFlag=" + timeFlag + ", maxTimeFlag=" + maxTimeFlag + ", minTimeFlag=" + minTimeFlag + ", segmentId=" + segmentId + '}';
    }

}
